import request from './request.js'

export function login(data) {
  return request({
    url: '/user/login',
    data: data,
    method: 'post'
  })
}
export function registerToServer(data) {
  return request({
    url: '/user/register',
    data: data,
    method: 'post'
  })
}
export function editPasswordToServer(data) {
  return request({
    url: '/user/password',
    data: data,
    method: 'post'
  })
}